fleshing out the basic JS