Fixing the Manage Allowances drop down issue. I've also refactored some tests to use the new ruby syntax and refactored some JS to remove some DRY issues