Update test.js

Test to ajax