Freelancer:
maxkoryukov
Javascript solution
I can solve your problem, but I need the broken source code;)