fix unexpected token error with new UA script