Added JS code to github.