addded js code