updated JS chatper 14