Clicking on browser action generates JS error
https://www.pivotaltracker.com/s/projects/640243/stories/53878263
Found a few issues, has to be verified.

Signed-off-by: IUnknown68 <arne@salsitasoft.com>