Fixed js problem in dash