modify js code