update precompile method to support handlebars v2.0.0