moving seak form script into its own js file