Added display hook logic to handle widgets
Basic display logic
s/show/_repr_...
Added code to display Javascript in frontend.