Updated view of pagination,
fixed some pagination bugs.
Changed structure project.
Added requirejs.js