Covert values to either px or ems, with location awareness. To use, just call either $(val).toEm() or $(val).toPx(). Scope option allows for context, so you can calculate the value based on the value of 1em in a given location on the page: $(val).toEm({scope: '.selector'});