Create main script tabsort0.js

Main functional in this code.