Add license header. Add JavaScript thread