remove JS closing bracket