Endless Scroll JS is now functioning.

Made an adjustment to the routes to get json data.
Edited board controller to generate json data for posts.
Refactored endlessscroll.js to be more readable.
Fixed small errors that caused loading and page number to reset each iteration of the loop.
Built ajax success function to parse json data, insert into template, and append to document.