fixed bundles
added typescript implementation