Moved js code to js file
animate letter and photo