added require js and make rest call work