add ajax functionality and sunlight lookup