Put together some JavaScript stuff