remove ; in js params since if params empty will cause error