Moving javascript to it's own file.