refactor server using jobs-service,  include karma, phantomjs,to test front end, add jobs.spec.js to descibe front behavior