added CSS and javascript support to the base element class