Fixed the pad function.
Optimize for V8
Optimize for V8
Optimize for V8
Refactoring
Refactoring