Nav targets JS code working properly
Cleaning up nav target JS code