Moves inline javascript to a file.