CORE javascript for WLC Chrome Extensions