js scroll assignment