Put the JS functions in a separate file.