updated all files with syntax fixes to accomodate jshint.