Addressed JSHint errors