A couple fixes to work for IE8 and IE9

In addition, added parsley as a validator which can quickly be removed if not desired in this setup. Both commits include fixes for IE8 and IE9.