Move stuff around for appengine
Added JS version of CFG