JSHint

enable JSHint and reformat code