Added clear action
Updated js