Wrap map from jquery