Basic setup of JS code.