updated resource linkinng and moved message.js