Fixed magic quotes and sendStatus JS