Workaround Javascript crap design