put DAYMS into pyfy.util
Use undefined, not arguments.length
Move cache into res