fix($state): fixing JSHint errors
fix($view): fixing JSHint errors