Restructured the project to keep scripts and views separately.
Added support of TypeScript and converted all current scripts.