changed js sim to use the new format