to js
updated hash
updated example