Moving from `alert` to `console.error`
Hardcoded values moved to constants

Limitation noted