quick refactor on jFresh.js