[UPDATE] Some JavaScript cleanup

It's not so clean as it could be, but better then before.
Also fixed a bug with the "Load more posts" button, should now work with
the page transition.

Ticket: #404 ERROR TICKET NOT FOUND