Made init and openPatch asynchronous, commented a bit the .js file