shity code with ajax