Fix memory leak on browser

Will exit with an error packet if the packet length string doesn't contain the value 255 in binary packets.
Adjust test to use proper data types and to only run for supporting browsers when testing the memory leak fix
Merge pull request #28 from rase-/fix/memory-leak-on-browser

Fix memory leak on browser as well