Construction begins from scratch to implement a fully capable motor node in javascript