Updated to use right default value idiom and $.noop