Javascript main page