made variables private

also added use strict to ensure this won't happen again
Made binding simpler

used parameters instead of binding to this. Thanks to @EamonNerbonne for
the suggestion