update javasript functions
Merge branch 'bang'