JavaScriptVM: fix iOS JSVM compilation, add phone_spec tests