improvements to some of the coffeescript, making things slightly more comprehensible and also making it so that the model select value is actually updated