Convert js templates to AMD modules no matter what syntax