[bug 1050565] Added JS for UI interaction.