如何使用PhpStorm IDE更正CakePHP项目中的js代码?

I am using Phpstorm as IDE in a CakePHP 3.0 project and the plugin CakeStorm. I would like to treat code inside script blocks as javascript code but the IDE doesnt identify with the correct syntax.

<?php $this->start('script') ?>
  //javascript code here ...
<?php $this->end() ?>

I know there is a feature called "language injection" in PhpStorm that could solve the problem but couldnt figure out a way to achieve this.

However, you can do that in php context:

$this->start('script');
echo <<<JS 
    //javascript code here ...
JS;
$this->end();