Fixed notices from JSLint