Updating View page functionality with Javascript/Ajax