add domcheck, add javascript check

Add dom count check. Add jscheck as well, so you can write a check in javascript to check for dom elements etc.