Create newTab.js

Moved tab JS into its own file
Added test of custom cursor