js compete change

changed js. Now it's working different then preveus
Merge pull request #7 from muxahuk/develop

js compete change