fix: linking errors on all js files

i have used our default lint profile but had to modify line length
+ add default global variables (require/define)