Fixed JSHint issues with the code. Style is now closer to what I currently use (thouugh there is still lots of work to be done on this to bring it along 18 months.