Moved place of inclusion of javascript file