var offset = new Date().getTimezoneOffset() / 60 if(offset != parseInt(JSTZ_OFFSET)){ new Ajax.Request("/jstz/" + offset); }