add capability\ detecton.js
add quirks\ detection

Signed-off-by: arcticlion <david.malan@aol.com>