factor out utils.js
conditional req and starting bezier