add missing semicolons
do not use var on function parameter
Merge pull request #356 from Trott/refactor-base

cleanup on base object