Simplify sbFormatBytes by using template over jQuery
bytesFilter: try parsing input as a number before rejecting it

Before, a string like "123" would have been returned unchanged. It is
now also processed as the number 123.
bytesFilter: test that 1000, not 1024 is used as base unit