Refer JS files as if they were in a js/ directory.
Added functions to open a plot in a browser.