add js vertion for name support. TODO: automate the process