javscript stuff in lol