Main Javascript function to execute.

This javascript function needs to be called and used to open external
link tabs.