Moved kernel.js from /framework /framework/base. Fixed a few syntax errors.