ajax, dom and params specs fixes