added js code