Added 'name' value to jsConfigBlock,  init cleanup

* A localized 'name' will be included in the js config block if available
* ext initialization has been cleaned up a bit

Change-Id: Ic4aaf5883496c53e3dc43c22131700d4cdc533b2