renamed embd javascript for integration with js/