JS warnings removed

No errors now :)