Intermediate commit - need to add ajax call to pure JS to make it work