Making js object name more generic