Pulled job creation JS code into its own file.