added java script code for verification