adding ajax functionality
handling forward slash