more cleanups to javascript account create