Restore compatibilty with JQuery up to 2.1.0

Reformatted following warnings from JSHint.
Sample here: http://jsfiddle.net/paganaye/1njL9017/22/