ajax routing almost complete