set up javascript base