Added basic Ajax functionality