removal of 'todo' and a unused variable (JSLint)