Various micro-optimizations on heavily trafficed functions
Made using HTML5 fs optional