Refactor ajax dream controller

loadeFile - typo?