where does this magic value comes from ? please take it from the DOM or at least make it a constant at the start of the file.