Changed hardcoded URL in Ajax; will work for any project