job class added, more html, ajax promises to reduce code