add fully functional ajax on captain treasure page