fixed bug in javascript that prevented adding of exercises to empty cycles