fixing js rutime