minor chsnges
fixed layers, added some cross-browser changes