Changed JS from POST to GET