jsHint errors resolved