added separate js file to handle achievement creation