added foundation

Also moved engine.js into js folder