Create menu_actions.js

From https://developer.mozilla.org/en-US/demos/detail/minipaint, with few changes to draw a temporary canvas before saving/downloading.