Add asserts to confirm chrome APIs are initialised, move redundant logging