patched out changes from js-candidate not in master branch