add js gallary support and login module