move inline javascript to own file