removing ruby code and adding nodejs code.