clean up javascript requires