Misc js fixes
Added warning message if the staff folder can't be written to