simplify js function
reflect new repo
changed name