@Sergey_Truhtanov, I was unable to reproduce the 500 error – hopefully that is good news!
What would be most helpful for debugging would be to include the script line number of the error. That is why I requested support for Javascript’s Error.stack.