Added initial js code from jsBin