feat(javascripts): add optional name support