retooled CI rewrite to use requirejs