Make macro to be used to create actions.

     Also created javascriptlet and shut-up as example usage.