added style checking for JS