getting JS to work