move javascript to footer