updated Osmosis for web, made several parameters global
added js code