Added permission requirement to upload ajax files
fixed formatting