added basketball sharedir files
namespaced remaining selectors, and global js state var