some optoons

1. define template
2. use strict