JavaScript for translucency effect.