Drawing app as a jquery plugin