scripting support + fixes
fixed css parsing algoritm