learning javascript mvc