updated to use exportjs