Added JSHint Config, corrected lint errors in code