Updated JS script to use task instead of todo as object