move javascript to files