fix main.js
add signin popin
better login popin and django-ajax ugly stuff