the most nasty js you have ever seen