Get prototypal inheritance to work properly by setting it up in requirejs. Also improve upon SPA tech