Correcting ajax handler for file ref