Changed JS class declarations.