Learning new features in javascript