Controle undefined links.js

Crash fixed