edited assets pipeline compilation in the application.rb, add the js tag in the landing page view and had to put the PagesView into the Pages controller
got rid of the error and seems that each javascript is loading for the correct page