Replace jquery statement with css