Update calGen.js

Added location