added C code for use together with static data generated by javascript