Finished Application.js for Length Page