corrected a js bug