Updated jsfiddle code to actually run validation