add js templates to rev parser
mobile nav to close on state change