clean up service main.js