fixes navigating back on the mobile browser by loading js files in the head and not in the body of the html