Setup java script.