fixed issue with ajax without having jquery