return index.html if otherwise
add urlfor for client js