There's the module for the DS3231 RTC at http://www.espruino.com/DS3231 that might be very similar?
But do you know that Espruino already has an RTC built-in? It may be you don't actually need the DS1307...
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There's the module for the DS3231 RTC at http://www.espruino.com/DS3231 that might be very similar?
But do you know that Espruino already has an RTC built-in? It may be you don't actually need the DS1307...