fix pay js