Improved IE compatibility and added fallback to css