Remove a lost script element

Signed-off-by: Ari Rahikkala <ari.rahikkala@gmail.com>
Separate out searchItem directive

This is fairly trivial, mostly for the purpose of learning how to use
Angular directives at all, but it does at least DRY up setting a
search item's class based on the type the backend gives us.

Signed-off-by: Ari Rahikkala <ari.rahikkala@gmail.com>