js adaptation
Merge remote-tracking branch 'master/master'