Thanks for the report. I'll take a look at this soon. The custom JS functionality is still very experimental, so this will be a good opportunity to improve it.