fleshing out the js