Added "class" keyword to JavaScript. Fixes #353.