JavaScript protocol buffer schema parser and template based code generator