Online Book Store - Ajax / Test Code /JavaScript