JavaScript code reorganization in the frontend