Partial move of control code to islandviewer object, cleaning up of plot js template code