time_left? method and ajax to to create items