updated documentation to cover support for defaulting padding modes in javascript layer
added test cases