[javascripts] fix #1