added missing instance variable
added javascript to start work on javascript workout creation