set up javascript