fix condition to load Google Map and load Moment.js define