Refactored Frank.js is working