modgui:javascript implementation proposition