Removed unneded code from CDLS block JS