added js, fixed destroy, added whenever, added rake task