wrong way 'but still works' to do JavaScript