Refactored some clases in Frame.js and removed a console message from router