Move javascript to a separate file.