[core][js] use strict + remove useless vars + remove warnings