added delete option, started with funcArray in api
fixed JS bug with parsing time