Added sample javascript