used this as guide https://stackoverflow.com/a/36796281 Notes there is a native support for type=module in browsers which make simport work python's simpleserver does not recognise javascript extension; so created localhost based on stackoverflow example