Fixed the fucking stupid javascript if block!!!!!!