made javascript run in background