Issue #203 add the ajax and javascript handlers