Added strPadLeft javascript helper