Add sample javascript code