Javascript mvc