made javascript run with .ready