added auth js