Part of standard/develop mode functioning in javascript part of canvas. Closes #363.