update template of controller
fix url query parsing
fix js gen for common js