[backend]: Added DOMAIN constant, based on domain name
[JS]: Seperation of logic, not much yet