some malfunctioning js