javascript: fixed parameter translation
javascript: added string equality