Edit js code