fixed myObject, var didn't preceed it.
getValue was being hoisted, so that it always returned 'b'. Switched from function dec to function expression.
finished the best practices.

mostly easy things. Had to do a quick check to MDN for parse int, forgot about the radix caveat.