updated cross browser support, and added some boolean options