updated local version of typescript compiler to 0.8.2 and refactored code to remove __proto__ and make it more compatible with command line compiler