Removed unused variables highlighted by JSHint