implemented create for nativescript

addressed code review changes

refs #