widgets: s/widget_init/widget_main/g

widget_main makes more sense as it's not really an init function, it's a
main loop function for most widgets.
widgets: set widget ptr as JS object private data