Javascript file is updated for new type