Fixed Script execution upon url change