refactored to ember + node app