JS programs using ajax to get info from mysql via php