Generalized/Simplified 'JSSelector'.
Refactored 'JSSelector' to its own module.