modification

altered the functionality, removed from jquery fn, added binary data types.