Trying again ...

It would be preferable to store this in a hidden field or to initialize a JS object with this id value.