Default calendar format js include

The way the calendar format string was added to the js of the page didn't work anymore with rc-0.9. I've changed the method and now it works again for me.