Small Fixes

 - FIX add viewHint property to widgetChrome so it can be changed in CXP manager
 - FIX some syntax problems in the js file template