Fixed appentTo error, still not working though