The implementation of Python Struct to Javascript