exporting window.data method
fixed typo in window.data method