switch JS to JavaScript - fixes #27