added basic mvc js structure