extract comics ctrl in new js file