refactoring myo observable code into myorx.js