I think I've found the issue, I had added a datastore resource, and query and when I specify a namespace as a parameter, I can no longer load the js queries in the editor.
As soon as I remove the value from namespace in the datastore query, I can see them again.