Fix helper for js value