perf improvement + code refactor
perf improvement + fixed rtl/ltr switch in demo
allow use of nopolyfill parameter in track-demo