took variables off global scope, refractored variable names replaced redundant string prototype with function, now uses options api