heavy code refactoring
_replaceWithLoader is now directly passed by reference instead of being held in a function
moved dots replacement to new _replaceDots method
replaced many jQuery functions with native JS (eg. anchor handling)
pagination will now always be created will all buttons disabled
fixed invalid comments inside the code
minor fixes in the code