Update JS to enable saving work as JSON