use javascript instead of coffee