use .toString() make cross browser, closes #1