fix javascript shit