Fleshing out JS structure, begin main controller