js bug fix, example fix