[socketio-jsb] further streamline jsb vs js codes