Added support for slices and moved some of the embedded javascript code in the experiment plugin into a separate js file for easier debugging.