add calc0 sample of js