It feels so wrong that you are setting a calc style from js but makes sense