removed un-needed if for class nodejs