Adjust js background method