Move data from embedded in template to xhr. Also prevent use of mockdata in prod