fixed Jquery, successfully connected front end with chase's logic