Add debug method to handle debug logs.
Add currentStyle fallback for IE(8).
Replace camelCase CSS property names obtained from currentStyle property with dashed lowercase version.