Initial commit of typescript-driven JS library for common functionality