Fixed js bug.