Add new gi method for javascript background