css to work with javascript