Added javascript and example file.