Added dropdown submission into separate js file