JS backend: fix annotation class compilation.