reworks JS MVC / DAO