Re-route Android JS, and refactor to ctools plugins