syntax error for js; refs #2, refs #5