Fixing Ajax Error [Work in Progress]