worked on a few cross browser bugs (moz and webkit for now)