Testsuite for Customdata and error #1140

Testsuite for Customdata and bug fix for #1140
Code refactory

avoiding too many variable and byte conversions
Removing customdata file

Removing Customdata.txt and customdatalarge.txt
create customdata file on fly
Code refacotry
JShint error Fixes

converting mixed tabs and spaces to spaces