add routes, filters, and directives, and clean up js libs