handle JS_ENGINE being just a string