css clean, add js function