Update v1.2

Add fix for Mozilla browser.
Change padding function to create unified padding output.