Hard code the main js file into the layout.
Refactor, move, remote request for posts to an angular service.