LPS-52140 Create a global js variable to obtain the portletKeys and avoid hardcode them

/cc @sergiogonzalez, @izaera 

Hey @ipeychev  this fixes a level 5 bug.

The first commit it's the fix itself, the second one is a proposal I've made to avoid hardcode the portletIds in js and avoid this errors in the future. I don't know if create a global var it's too agressive, so I need your opinion.

I only include the used portletIds i've found, but it could be useful to have all the portlet ids available

What do you think?

Thanks!!!