Add javascript background code