removed commonjs/AMD wrapper and added typescript wrapper