Added javascript code sample