added javascript code