fix issue with html entity encoded js properties