made response to be json to work with ajax login
loading google maps on document create