added achievments.js and other achievement related code