ADDED javascript code.