Change the js code in class object form