Test sample javascript code