Added ajax view method, fixes #15 | added headers, fixes #45

fixes #15 | fixes #45