Updated $.ajax to allow single parameter

Closes #21