make tests pass on phantimjs
make tests pass on phantimjs

sirspock/scripted_token,kyawzinsoe/scripted,kyawzinsoe/scripted,scripted-editor/scripted,kyawzinsoe/scripted,scripted-editor/scripted,scripted-editor/scripted,sirspock/scripted_token