set up the javascript necessary (I hope).