changed default functionality to write a stylesheet to head

instead of reading browser size constantly