Refactor company to use friendly_id for name as well.
Move js datepicker to global scope for now to keep it simple.