added Ag search (replaces ack) and support for Javascript & JST