Resolve dynamic template binding

also reorganized the scripts folder