"Compiler" for Gaffa JavaScript view definitions