Fixed the js_exists requirement