Javascipt: Better code sample

jQuery code is bloated and does not actually cover all highlights. I took this from Webstorm.