Update js/rem.js

The original script had some errors, and it didn't support a px base font-size.
I fixed some errors and added support for px font-size.
Still lacks pts.
removed tabs and added PT/EM tests
updated minified version as well