fix for js bindings on osx (qt likes const QString& over value)