replace viewformat with template
add jshint
set ver 1.0.1