Fixing some JS errors involving swiftbox multiple