added initial js and example