Other way to do ajax call, without needing php file