NX - Writing a JavaScript Framework