c + + and javascript fight each other at matrix