Update script.js

Created $section variable for storing section tag.