Set up compile to work for ajax calls.