Fixes JavaScript nullpointer