moved js file to top level