Setting up javascript version for cacheing