JavaScript: Disable selection of all elements excepted ones specified in whitelist.