Cosmico JS require implementation