fixing js bugs, pagination sync functionality
Merge pull request #11 from jkamcc/master

fixing js bugs, pagination sync functionality