move javascript into bottom