vim: more javascript convenience
bash: consolidate ack-related functions