LibreJS compatibility modifications