fixing multi js problem