Updated README
Updated README
Refractoring.
Fixed firefox specific bug.