Rename frontend.js to middleend.js