Using json instead .js with exports
Add port variable and jscs fix
Add Travis test