Changed the call method static:: to self::

Corrected 2 bugs Scrutinizer - Since _replaceJsExpr() is declared private, calling it with static will lead to errors in possible sub-classes. You can either use self, or increase the visibility of _replaceJsExpr() to at least protected.