Enhanced both JS and no-JS style of PHP index