add remote options, JS templates, and a little jQuery