Finishing js for first page: