How to embed javascript in a Sugar Enterprise module?

Hello.

I'm developing on a Sugar Enterprise 7.5.2.4 On-Demand instance.

I must do some client-side validation using jquery 'maskedinput' plugin on a field.

I already know how to do it in Sugar Community and SuiteCRM, but for Enterprise most people say it isn't the same process...

The way I know to do is like that:

SugarCRM: Adding Javascript validation on form submit – Php Bugs

I even tried one time, but it didn't worked.

What should be the correct way to embed javascript file in a Sugar Enterprise module?

Any help would be appreciated.

Thanks!