Update script.js

The pagination is working.
The only bug that I found is at the last page of the pagination, where it is shown only a insert button