Fixing ajax syntax issue