The VM201 itself has a web interface that uses javascript to call an url that toggles a relay.
index.html -> cgi/relay.cgi?toggle=1 (something like that)
So I guess you could call that same url with javascript. It does not have a switch on or switch off function, only toggle! If toggle is enough for you then this is an option.
To retrieve and display the status, the web interface uses javascript as well:
index.html -> status.cgi
This either reports xml or json, I can’t quite remember which one. But the status can be consumed with javascript as well. With today’s jquery this should be a piece of cake.