switch to js instead of coffee