remove unused variable
remove unused parameter
remove unused parameter
switch from JSLint to JSHint and cleanup code so it passes JSHint without any warnings at all, too