Refactor jobs.js a bit
Dynamically add priorities