Playing with static class constructor.
No-Library (pure JS), HTML, CSS, JavaScript
Toggle class name on click in jQuery
jQuery 1.9.1, HTML, CSS, JavaScript
jQuery (edge), HTML, CSS, JavaScript
Esri's fiddle for routing w/ ArcGIS for JavaScript API
Waiting for all promises with Promise.all
demo using throttle function for mousemove event