Yes it can be done via javascript but its faster to do it via server, also makes the embed readable to google and other search engines. That is why I chose to do it that way.
I recommend changing hosting.
Digital Ocean VPS are very cheap and easy to install.