<script type="text/javascript">
    $(function () {
        initFileInput("edititem${random}", "/pic/upload.action", 1);

        $(".js-data-example-ajax").select2({
            ajax: {
                url: "https://api.github.com/search/repositories",
                dataType: 'json',
                delay: 250,
                data: function (params) {
                    return {
                        q: params.term, // search term
                        page: params.page
                    };
     