Index and main js