workaround javascript ug2